package com.atguigu.day02.homework;

public class HomeWork3{
	public static void main(String[] args){

		byte b1 = 10, b2 = 20;
		byte b3 = (byte) (b1 + b2);
		System.out.println("b3 = " + b3);

		short s1 = 1000, s2 = 2000;
		short s3 = (short) (s1 + s2);
		System.out.println("s3 = " + s3);

		char c1 = 'a';
		int num = 5;
		char letter = (char) (c1 + num);
		System.out.println("letter = " + letter);

		int i1 = 5, i2 = 2;
		double result = (double) i1 / i2;
		System.out.println("result = " + result);
	}
}